/**
 * Created by Administrator on 2015/10/23 0023.
 */
function dada() {
    var date=new Date();
    var hours=date.getHours();
    var minutes=date.getMinutes();
    var seconds=date.getSeconds();

    var year=date.getFullYear();
    var month=date.getMonth()+1;
    var day=date.getDate();
    var Clock=hours+":"+minutes+":"+seconds;
    var Day=year+"年"+month+"月"+day+"日";
    document.getElementById("time").innerText=Clock;
    document.getElementById("day").innerText=Day;
}
setInterval(dada,1000);
dada();



function functionTimer(){
    var input=document.getElementById("input");
    var time=input.value;
    function showTimer() {
        time=time-1000;
        var show="剩余时间："+time;
        document.getElementById("Timer_show").innerText =show;
    }
    var time1=setInterval(showTimer,1000);
    setTimeout(Do,time);
    function Do(){
        bf();
        clearInterval(time1);
        var r=confirm("时间到了，是否关闭音乐");
        if(r==true)
        {
            var show2="剩余时间：--"
            document.getElementById("Timer_show").innerText =show2;
            bz();
        }
        else
        {
        }
    }
}
function bf() {
    var audio = document.getElementById("music1");
    audio.play();
}
function bz() {
    var audio = document.getElementById("music1");
    audio.pause();
//        audio.muted=false;
}
